<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<!-- 作业1 -->
		<!-- a，b，c。对三个数进行比较和交换，交换后a最
		小，b次之，c最大。分别输出交换前后abc的值。-->
		<script type="text/javascript">

		</script>
		<!-- 作业2 -->
		<!-- 机票4000 1-3为淡季 -->
		<script type="text/javascript">
			function fun1(a, b, c) {
				for (var i = 1; i <= 12; i++) {
					if (i <= 3) {
						b = a * 0.6;
						c = a * 0.3;
						console.log(i + "月份头等舱价格:", b);
						console.log(i + "月份经济舱价格:", c);
					} else {
						b = a * 0.9;
						c = a * 0.75;
						console.log(i + "月份头等舱价格:", b);
						console.log(i + "月份经济舱价格:", c);
					}
				}
			}
			fun1(4000);
		</script>
		<!-- 作业3 -->
		<!-- 联合国世界卫生组织对年龄的划分标准 -->
		<script type="text/javascript">
			function fun2(a) {
				if (a < 44) {
					console.log("赵红属于青年")
				} else if (a >= 45 && a < 59) {
					console.log("赵红属于中年人")
				} else if (a >= 60 && a < 89) {
					console.log(a, "赵红属于老年人")
				} else if (a >= 90) {
					console.log("赵红属于长寿老年人")
				}
			}
			fun2(99);
		</script>
		<!-- 作业4 -->
		<!-- 我们来做个周计划 -->
		<script type="text/javascript">
			function fun3(a) {
				var b;
				switch (a) {
					case 1:
					case 2:
						b = "学习理念知识";
						break;
					case 3:
						b = "到企业实践";
						break;
					case 4:
						b = "到企业实践";
						break;
					case 5:
						b = "总结经验";
						break;
					case 6:
						b = "休息和娱乐";
						break;
					case 7:
						b = "休息和娱乐";
				}
				console.log(b);
			}
			fun3(Number(prompt("请输入今天周几")))
		</script>
	</head>
	<body>
	</body>
</html>
